package com.ybkj.o2o.zhuanche.mapper;



import com.ybkj.o2o.zhuanche.entity.PassengerComplaints;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PassengerComplaintsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PassengerComplaints record);

    int insertSelective(PassengerComplaints record);

    PassengerComplaints selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PassengerComplaints record);

    int updateByPrimaryKey(PassengerComplaints record);

    List<PassengerComplaints> selectByOrderId(@Param("orderId") Long orderId,
        @Param("appKey") String appKey, @Param("offset") Integer offset, @Param("limit") Integer limit);

    long countByOrderId(@Param("orderId") Long orderId, @Param("appKey") String appKey);

    int deleteByIdAndAppKey(@Param("pcId") Long pcId, @Param("appKey") String appKey);

    PassengerComplaints findOne(@Param("pcId") Long pcId, @Param("appKey") String appKey);
}
